*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.home{
  //顶部logo部分设置弹性布局
  .title{
    height: 60px;
    width:100%;
    div{
        img{
        width: 100%;
        }
      }
  }
}
//中间小图导航部分
.small{
  div{
    &:first-child{
      //装input的盒子
      width: 100%;
      padding: 0 10px;
      margin-top: 12px;
      input{  //设置输入框样式
        width: 100%;
        border-radius: 6px;
        height: 43px;
        border: none;
        outline: none;
        background: url("../img/Mo_search_icon.png") 100px no-repeat;
        background-size: 20px;
        background-color: #F5F5F5;
        padding: 0 30px;
        font-size: initial;
        text-align: center;
      }
    }
    &:last-child{
      display: flex;  //弹性布局
      padding: 20px 5px;
      width: 100%;
      justify-content: space-around;
      align-items: center;
      a{
        flex: 1;
        color: black;
        text-align: center;
        img{
          width: 65px;
          margin: 0 0 5px;
        }
      }
    }
  }
}
// 热门推荐部分
.cake_show{  //整个大模块
  width: 100%;
  padding: 15px;
  background: #F5F5F5;
  #clear{
    clear: both;
  }
  div{  //左右两边的大盒子
    float: left;
    padding: 5px;
    width: 50%;
    display: flex;  //左右两边大盒子设置弹性布局
    height: 22rem;
    flex-direction: column;  //改变主轴方向
    justify-content: space-around;
    background: #F5F5F5;
    box-sizing: border-box;
    a{  //左右两边大盒子中装图片的小盒子
      flex: 1;
      clear: both;  //装图片的盒子清除浮动
      width: 100%;
      border-radius: 10px;
      outline: none;
      color: black;
    }
  }
  //左边的盒子
  .food_show_left{
    display: flex;
    justify-content: space-between;
    a{
      position: relative;
      width: 100%;
      height: 33%;
      margin: 5px 0;
      img{
        width: 50%;
        position: absolute;
        right: 0.1em;
        top: 1.5em;
      }
      &:first-child{
        background: #FFEBCF;
      }
      &:nth-child(2){
        background: #FFE7E7;
      }
      &:last-child{
        background: #C8FAE3;
      }
      .text1{
        position: absolute;
        left: 1em;
        top: 1.3em;
      }
      .text2{
        position: absolute;
        padding: 5px 6px;
        border-radius: 20px;
        background: white;
        bottom: 1.2em;
        left: 1em;
        color: white;
        font-size: 14px;
      }
      .one{
        background: #974E0A;
      }
      .one1{
        color:#974E0A ;
      }
      .two{
        background: #C25654;
      }
      .two1{
        color:#C25654;
      }
      .three{
        background: #71CE80;
      }
      .three1{
        color: #71CE80;
      }
    }
  }
  .food_show_right{
   a{
     width: 100%;
     background: white;
     margin: 5px 0;
     text-align: center;
     padding: 0.8rem 1.2rem;
     img{
       width:100% ;
     }
   }
  }
}
//公共样式部分：查看更多
.more{
  text-align: center;
  clear: both;
  a{
    display: inline;
    color: white;
    border-radius: 20px;
    padding: 5px 6px;
    background: #E8B85E;
    margin: auto;
  }
}
h3{
  text-align: center;
}
.big_cake{
  padding: 10px;
  img{
    width: 100%;
  }
  .more{
    margin-top: 20px;
  }
}
.non{  //大盒子清除浮动
  height: 50px;
}
//轮播图样式
.carousel-inner img {
  width: 100%;
  height: 100%;
}
//蛋糕展示部分样式
.card-columns {
@include media-breakpoint-only(lg) {
  column-count: 4;
}
@include media-breakpoint-only(xl) {
  column-count: 5;
}
}
//修改卡片样式
.big_cake{
  padding:10px 15px;
  background: #eee;
  .row{
    .col{
      /*修改卡片边距*/
      margin: 0 0 5px ;
      padding: 0 5px;
      .card{
        /*卡片盒子文字部分样式*/
        .card-body{
          padding: 0.5rem;
          p{
            /*购物车字体图标*/
            span{
              &:last-child{
                float: right;
                color: black;
              }
              /*价格样式*/
              &:first-child{
                font-weight: bold;
                color: red;
              }
            }
          }
          /*商品字体颜色设置*/
          h6{
            color: black;
          }
        }
      }
      /*设置a的样式*/
      a{
        text-decoration: none;
        color: black;
      }
    }
  }
}
/*修改卡片样式*/
.mb-4, .my-4 {
  margin-bottom: 0.5rem !important;
}